Run Recovery middleware's error handler in a goroutine#165
Run Recovery middleware's error handler in a goroutine#165pjebs wants to merge 1 commit intourfave:masterfrom pjebs:master
Conversation
|
@pjebs looks like there are some race conditions introduced by this. I'd still like to see some benchmarks motivating this change, but I can plan on running some after the race conditions are addressed. |
|
Are you sure the race conditions were introduced by this change or were they already there? |
|
@pjebs I'm unable to reproduce on master, but am able to consistently reproduce given your patch. Given that you are adding an additional goroutine, I don't think it is too surprising that race conditions might be introduced. |
|
Any movement on this? A quick scan indicates that it would solve the issue I filed in |
|
@trevrosen It looks like you opened #245 after this comment so I assume you realized this wouldn't help with #244, but let me know if you still think it would (I'm not seeing how). I'm still not sure this PR is necessary, but I'm open to thoughts. It is possible to spin off a goroutine in the provided
|
|
Yeah I rescind my earlier comment. I'm not sure what I must've been looking at before, lol... IMHO the PR isn't strictly necessary. The user can choose to |
-Addresses:
#147 (comment)